<template>
	<wt-model-table :auto-load = "true" :page-size = "pageSize" :page-param = "pageParam"  :params-data = "paramsData" :model = "departmentList" :min-handle-width = "minWidth" :allow-add = "false" :allow-edit = "false" :allow-remove = "false"></wt-model-table>
</template>
<script>
import Vue from 'vue'
import table from 'winged/components/wt-model-table'
import departmentList from '../js/model/department-list'
import wtNewDepartment from '../components/wt-new-department'
Vue.component(wtNewDepartment.name, wtNewDepartment)
export default {
	name:"wt-department-list",
	components:{
		[[table.name]]:table,
	},
	props:{
		list:{
			type: Array,
			default: []
		}
	},
	data(){
		return{
			departmentList : departmentList,
			pageParam : "page_index",
			pageSize : 10,
			minWidth : 120,
			paramsData : {
				parent_id : '0',
				page_index : '0',
				page_size : '200'
			}
		}
	},
	created(){
	}
}
</script>